﻿using System.Collections.Generic;
using System.Linq;
using FoosballEye.Model;

namespace FoosballEye.Repository
{
    public class GameLevelRepository : RepositoryBase<FoosballEyeDbContext>, IGameLevelRepository
    {
        public GameLevel GetByValue(int percentageValue)
        {
           return DataContext.GameLevel.FirstOrDefault(x => x.PercentageValue == percentageValue);
        }
        
    }
}
